package com.company.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.company.system.mapper.TableTodolistMapper;
import com.company.system.domain.TableTodolist;
import com.company.system.service.ITableTodolistService;

/**
 * 待办列Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-06
 */
@Service
public class TableTodolistServiceImpl implements ITableTodolistService 
{
    @Autowired
    private TableTodolistMapper tableTodolistMapper;

    /**
     * 查询待办列
     * 
     * @param todoid 待办列主键
     * @return 待办列
     */
    @Override
    public TableTodolist selectTableTodolistByTodoid(Long todoid)
    {
        return tableTodolistMapper.selectTableTodolistByTodoid(todoid);
    }

    /**
     * 查询待办列列表
     * 
     * @param tableTodolist 待办列
     * @return 待办列
     */
    @Override
    public List<TableTodolist> selectTableTodolistList(TableTodolist tableTodolist)
    {
        return tableTodolistMapper.selectTableTodolistList(tableTodolist);
    }

    /**
     * 新增待办列
     * 
     * @param tableTodolist 待办列
     * @return 结果
     */
    @Override
    public int insertTableTodolist(TableTodolist tableTodolist)
    {
        return tableTodolistMapper.insertTableTodolist(tableTodolist);
    }

    /**
     * 修改待办列
     * 
     * @param tableTodolist 待办列
     * @return 结果
     */
    @Override
    public int updateTableTodolist(TableTodolist tableTodolist)
    {
        return tableTodolistMapper.updateTableTodolist(tableTodolist);
    }

    /**
     * 批量删除待办列
     * 
     * @param todoids 需要删除的待办列主键
     * @return 结果
     */
    @Override
    public int deleteTableTodolistByTodoids(Long[] todoids)
    {
        return tableTodolistMapper.deleteTableTodolistByTodoids(todoids);
    }

    /**
     * 删除待办列信息
     * 
     * @param todoid 待办列主键
     * @return 结果
     */
    @Override
    public int deleteTableTodolistByTodoid(Long todoid)
    {
        return tableTodolistMapper.deleteTableTodolistByTodoid(todoid);
    }
}
